import 'package:flutter/material.dart';

class PSPage extends StatelessWidget {
  const PSPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length:2 ,
      child: Scaffold(
          backgroundColor: Colors.white,
          appBar: AppBar(

            actions: <Widget>[
              IconButton(
                icon: Icon(Icons.info_outline),
                onPressed: () {

                },
              ),

            ],


            backgroundColor: Colors.blueAccent,
            elevation: 0,
            title:Text("CCTB新闻浏览器"),
            centerTitle:true,
          ),
          body:
          Container(
              decoration:BoxDecoration(
                image: new DecorationImage(
                    fit: BoxFit.cover,
                    image: ExactAssetImage('images/bg3.gif')
                ),
              ) ,
              child:

              Container(
                // decoration:BoxDecoration(
                //   image: new DecorationImage(
                //       fit: BoxFit.cover,
                //       image: ExactAssetImage('images/bg2.gif')
                //   ),
                // ) ,
                child: Column(
                  children: <Widget>[
                    Container(

                      child: Image.asset('images/ccb.png',width: 100,height: 100),
                      alignment: Alignment.center,
                    ),

                    Text('用户名:123456',style: TextStyle(
                      fontSize: 20.0,
                      color: Colors.white
                    ),textAlign: TextAlign.center,),],
                ),
              )
          )


      ),
    );
  }
}//Text('cctb新闻浏览器是一款简易的新闻浏览器'),